package com.jd.finance.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jd.finance.core.pojo.dto.GetLoanDetailInfoDTO;
import com.jd.finance.core.pojo.dto.LoanApplyInfoDTO;
import com.jd.finance.core.pojo.dto.NoCheckLoanDTO;
import com.jd.finance.core.pojo.entity.LoanApply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 贷款申请表 Mapper 接口
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-25
 */
@Mapper
public interface LoanApplyMapper extends BaseMapper<LoanApply> {


    Integer selectMonthMoney();


    /**
     * 获取 未审核 贷款的 申请
     * @param
     * @return
     */
    Page<NoCheckLoanDTO> getNoAuditLoan(@Param("pageParam") Page<NoCheckLoanDTO> noCheckLoanDTOPage);


    /**
     * 根据贷款申请id  获取贷款申请详情
     * @param loanAppId
     * @return
     */
    LoanApplyInfoDTO getApplyLoanInfoFi(Integer loanAppId);

    /**
     * 根据
     * @param loanAppId
     * @return
     */
    GetLoanDetailInfoDTO getLoanDetailInfo(Integer loanAppId);
}
